package com.zzq.jenkins.jenkinstest.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ZZQ
 * @date 2019/2/28 下午 5:28
 */
@RestController
public class HelloController {
    @GetMapping("/test")
    public String test() {
        return "success";
    }

    @GetMapping("/name")
    public String name(@RequestParam(defaultValue = "JenkinsTest") String name) {
        return name;
    }
}
